package com.chezhujie.www.domain;

import com.chezhujie.www.core.init.mysql.BaseEntity;
import com.chezhujie.www.core.init.mysql.annotation.Column;
import com.chezhujie.www.core.init.mysql.annotation.Entity;
import com.chezhujie.www.core.init.mysql.annotation.Id;
import com.chezhujie.www.core.init.mysql.annotation.Table;

import java.math.BigDecimal;
import java.util.Date;

/**
 * Created by 汤伟杰 on 2017/6/14.
 */
@Entity
@Table(name="czj_tordermemberdetail",describe = "会员订单明细")
public class Czjtordermemberdetail extends BaseEntity{
    @Id
    @Column(describe = "主键",length = 19,inputType = "hidden")
    private String id;
    @Column(describe = "订单编号",length = 25,inputType = "text")
    private String orderCode;
    @Column(describe = "商品",length = 19,inputType = "select",inputCode = "str")
    private String commodityId;
    @Column(describe = "订单标题",length = 100,inputType = "str")
    private String title;
    @Column(describe = "数量",length = 11,inputType = "int")
    private Integer amount;
    @Column(describe = "价格",length = 11,precision = 2,inputType = "int")
    private BigDecimal salePrice;
    @Column(describe = "创建时间",inputType = "date")
    private Date createTime;
    private Date createTimeStart;
    private Date createTimeEnd;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getOrderCode() {
        return orderCode;
    }

    public void setOrderCode(String orderCode) {
        this.orderCode = orderCode;
    }

    public String getCommodityId() {
        return commodityId;
    }

    public void setCommodityId(String commodityId) {
        this.commodityId = commodityId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getAmount() {
        return amount;
    }

    public void setAmount(Integer amount) {
        this.amount = amount;
    }

    public BigDecimal getSalePrice() {
        return salePrice;
    }

    public void setSalePrice(BigDecimal salePrice) {
        this.salePrice = salePrice;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getCreateTimeStart() {
        return createTimeStart;
    }

    public void setCreateTimeStart(Date createTimeStart) {
        this.createTimeStart = createTimeStart;
    }

    public Date getCreateTimeEnd() {
        return createTimeEnd;
    }

    public void setCreateTimeEnd(Date createTimeEnd) {
        this.createTimeEnd = createTimeEnd;
    }
}
